# -*- coding: utf-8 -*-

# 运行配置
HOST = "127.0.0.1"
PORT = 8765
SOURCE_ID = "py-pose-1"

# 预览调试
MIRROR_PREVIEW = False
DEBUG_PRINT = False
PRINT_JOINTS_EVERY_N = 0

# 平滑（像素坐标 EMA）
EMA_ALPHA = 0.45

# 下蹲参数（单位为“肩宽”）
SQUAT_HOLD_FRAMES = 3
SQUAT_COOLDOWN_S = 1.0
SQUAT_KNEE_PROX_DELTA = 0.10
SQUAT_KNEE_ANGLE_MAX = 120.0
SQUAT_HIP_ANKLE_GAP_MAX = 0.90
SQUAT_HIP_DROP_VS_SHOULDER = 0.35

# 跳跃参数
JUMP_VEL_UP_THRESH = -1.2
JUMP_MIN_ASCENT = 0.40
JUMP_FALL_CONFIRM_VEL = 0.6
JUMP_COOLDOWN_S = 1.0
JUMP_SMOOTH_T = 0.10

# 挥手参数
WAVE_WINDOW_S = 1.2
WAVE_MIN_REVERSALS = 2
WAVE_MIN_AMPLITUDE_SHOULDER = 0.6
WAVE_COOLDOWN_S = 1.2

# 可见度阈值
VIS_THRESH = 0.3

# 广播筛选
ACTION_THRESHOLD = 0.6
TOP_K = 2